package com.wyl.mine.wallet

import android.content.Intent
import com.wuhenzhizao.titlebar.widget.CommonTitleBar
import com.wyl.libbase.base.NormalActivity
import com.wyl.libbase.extend.moneyFilter
import com.wyl.libbase.extend.onclick
import com.wyl.mine.R
import com.wyl.mine.unique.credit.CreditListActivity
import kotlinx.android.synthetic.main.income_activity.*

class IncomeActivity : NormalActivity() {
    override fun getLayoutId(): Int = R.layout.income_activity

    override fun initView() {
        titleBar.setListener { _, action, _ ->
            when (action) {
                CommonTitleBar.ACTION_LEFT_BUTTON -> onBackPressed()
                else -> {
                }
            }
        }

        layout_detail.onclick { startActivity(Intent(this, CreditListActivity::class.java)) }
        statistic_layout.onclick { startActivity(Intent(this, StatisticActivity::class.java)) }

        money.moneyFilter()
    }

    override fun loadData() {

    }

}
